
class Tab {
    constructor() {
        //注册
        this.yh = document.getElementById('yh')
    }
    bindEvent() {
        this.add()
    }
    add() {
        this.yh.onclick=function(){
            console.log(this)
            location.href = './denglu.html'
        }

    }
}
var res = new Tab()
res.bindEvent()

